﻿using SqlSugar;

namespace Model.Entity
{
    [SplitTable(SplitType.Year)]
    [SugarTable("log_{year}{month}{day}")]
    public class LogEntity : BaseEntity
    {
        [SugarColumn(IsPrimaryKey = true)]
        public long Id { get; set; }
        public string Content { get; set; } = string.Empty;

        public int Level { get; set; } = 1;


        [SugarColumn(InsertServerTime = true, IsOnlyIgnoreUpdate = true)]
        [SplitField]
        public DateTime CreatedAt { get; set; }

    }
}
